package Demo01;

public class StringzhengzeDemo03 {
    public static void main (String[] args) throws Exception{
        String str = "muyan.yootk-lixinghua@yootk.com";
        String regex = "[a-zA-Z_][a-zA-Z0-9\\-_\\.]+@[a-zA-Z0-9\\-]+"
                + "\\.(com|com\\.cn|net|net\\.cn|gov|edu)";
        System.out.println(str.matches(regex));
    }
}
